﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddMonthRemind.aspx.cs" Inherits="Month_AddMonthRemind" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加部门月提醒</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="../Js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function userinfo(str) {
            window.open('../WebCommon/UserInfo.aspx?SID=' + str, '', 'width=700,height=580,top=150, left=300');
        }
    </script>
    <style type="text/css">
        /*标黑投影显示的表格线*/td
        {
            border-width: 1px;
            border-color: Black;
        }
        th
        {
            border-width: 1px;
            border-color: Black;
        }
        table
        {
            border-color: Black;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
    </asp:ScriptManager>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td class="firstbjcolor" colspan="8" style="height: 14px;">
                <span class="currentHere">当前位置:月计划管理-&gt;部门月提醒</span>
            </td>
        </tr>
        <tr>
            <td style="height: 30px; background-image: url(../images/secondRow.gif); background-repeat: repeat-x;">
                &nbsp;年份:<asp:DropDownList ID="drpYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
                </asp:DropDownList>
                年周期:<asp:DropDownList ID="drpQuarterDate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpQuarterDate_SelectedIndexChanged">
                </asp:DropDownList>
                月周期:<asp:DropDownList ID="drpMonthDate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpMonthDate_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:Button ID="btnDel" runat="server" CausesValidation="False" OnClick="btnDel_Click"
                    SkinID="buttonSkin" Text="删除" />
                <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" SkinID="buttonSkin"
                    Text="修改" CausesValidation="False" />
                <asp:Button ID="btnDisplay" runat="server" OnClick="btnDisplay_Click" SkinID="buttonSkin"
                    Text="投影" CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gdvMonthRemind" runat="server" AutoGenerateColumns="False" SkinID="gridviewSkinDisplay"
                    Width="100%" DataKeyNames="RemindId" OnRowDataBound="gdvMonthRemind_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
                            <ItemTemplate>
                                <asp:CheckBox ID="ckbSelect" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="计划编号">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="PlanSponsor" HeaderText="发起人">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="RemindPeople" HeaderText="参与人">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="EndDate" DataFormatString="{0:d}" HeaderText="结束时间">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TheMonthRemind" HeaderText="月提醒内容">
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="250px" Wrap="True" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="250px" Wrap="True" />
                        </asp:BoundField>
                        <asp:BoundField DataField="RemindId" HeaderText="RemindId" Visible="False" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <table>
                    <tr>
                        <td style="text-align: right">
                            发起人 :&nbsp;
                        </td>
                        <td>
                            <input id="txtSponsor" readonly="readonly" style="width: 170px" type="text" runat="server" /><a
                                href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><input id="Submit1"
                                    size="18" type="button" value="..." /></a>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            参与人 :&nbsp;
                        </td>
                        <td>
                            <input id="txtRemindPeople" readonly="readonly" style="width: 170px" type="text"
                                runat="server" /><a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><input
                                    id="Button1" size="18" type="button" value="..." /></a>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            结束时间 :&nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtEndDate" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" Width="170px" SkinID="textboxSkin"></asp:TextBox><asp:CompareValidator
                                ID="CompareValidator2" runat="server" ControlToValidate="txtEndDate" Display="Dynamic"
                                ErrorMessage="日期类型不正确" Operator="DataTypeCheck" Type="Date" Width="0px"></asp:CompareValidator> 
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            月提醒内容 :&nbsp;
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtTheMonthRemind" runat="server" Height="97px" TextMode="MultiLine"
                                Width="478px"></asp:TextBox>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" SkinID="buttonSkin"
                                Text="提交" />
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <input id="h1h" runat="server" type="hidden" /><input id="h2w" runat="server" type="hidden" />
    </form>
</body>
</html>
